<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript">
	function check() {
		var pass1 = document.getElementById("password1").value;
		var pass2 = document.getElementById("password2").value;
		if (pass1 == pass2) {
			document.forms["passwordform"].submit();
		} else {
			alert("enter same passwords");
		}

	}
</script>
</head>
<body>
		<form action="resetPassword.action" method="post" id="passwordform">
			<input type="hidden" name="site" value="<s:property value="site"/>"/>
			<input type="hidden" name="login_id" value="<s:property value="login_id"/>"/>
			Site : <s:property value="site"/>
			Cid : <s:property value="cid"/> <input type="hidden" name="cid" value="<s:property value="cid"/>"/>
			Enter new password : <input type="password" name="password1" id="password1" /> <br /> 
			Re-Enter new Password : <input type="password" name="password2" id="password2" /> <br /> 
			<input type="button" value="Reset" onclick="check()"/>
		</form>
</body>
</html>